package beautiful.butterfly.drds.binlog.event.data;

import beautiful.butterfly.drds.binlog.event.EventData;
import beautiful.butterfly.drds.binlog.event.EventHeader;
import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;


public class RowsQueryEventData implements EventData
{

    private static final long serialVersionUID = 8263641770089808861L;
    @Setter
    @Getter
    private String query;
    @Setter
    @Getter
    private EventHeader eventHeader;


    public String toString()
    {
        final StringBuilder sb = new StringBuilder();
        sb.append("RowsQueryEventData");
        sb.append("{query='").append(query).append('\'');
        sb.append('}');
        return sb.toString();
    }

    @Override
    public void setEventHeader(EventHeader eventHeader)
    {
        this.eventHeader = eventHeader;
    }

    @Override
    public ArrayList<JSONObject> toJson()
    {
        return null;
    }

}
